//
//  homePageViewController.m
//  校园帮(用户)
//
//  Created by 吴添培 on 2017/7/31.
//  Copyright © 2017年 吴添培. All rights reserved.
//

#import "homePageViewController.h"
#import "homeMenu.h"
#import "trainViewController.h"
#import "MassViewController.h"
#import "StudyAbroadController.h"

@interface homePageViewController ()<homeMenuDelegate>

@end

@implementation homePageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    [self setUpNavBar];
    [self setUpHomeMenu];
}

-(void)setUpNavBar{

}

-(void)setUpHomeMenu{
    homeMenu *menu = [[homeMenu alloc]init];
    menu.frame = CGRectMake(0, 10, [UIScreen mainScreen].bounds.size.width, 100);
    menu.delegate = self;
    [self.view addSubview:menu];
    
}

-(void)setPushViewControllerWithButtonTitle:(NSString *)buttonTitle{
    if ([buttonTitle isEqual:@"培训"]) {
        [self setUpViewControllerPush:[[trainViewController alloc]init]];
    }
    else if ([buttonTitle isEqual:@"留学"]){
        [self setUpViewControllerPush:[[StudyAbroadController alloc]init]];
    }
}

-(void)setUpViewControllerPush:(UIViewController *)VC{
    [self.navigationController pushViewController:VC animated:YES];
}


@end
